Skript-Fehler: --------------- Ungültiger Parameter. --------------- Zeile 24, Spalte 3: var iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin)); --------------- Datei: C:\Users\Computer-1\AppData\Local\Zeta Producer 13\packaging\widgets\singleimage\standard.html --------------- Quelltext: 001: function SE636010922109862783() {} 002: 003: 004: SE636010922109862783.prototype.executeScript = function(){ 005: // Start source file: 'C:\Users\Computer-1\AppData\Local\Zeta Producer 13\packaging\widgets\singleimage\standard.html'. 006: 007: 008: var image = project.getImage(article.value("image")); 009: var contentImageWidth = "-30"; 010: // Kann auch "700px" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen. 011: contentImageWidth = parseInt(contentImageWidth) || 960; 012: 013: var gridCols = article.column.cssClass; 014: if ( gridCols ){ 015: gridCols = parseInt((gridCols.match(/\bc[1-9][0-2]?\b\s?/) || 12).toString().replace("c", "")); 016: } 017: else{ 018: gridCols = 12; 019: } 020: var columnMargin = 30; 021: var columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols; 022: 023: if ( !isNull(image) ) { 024: var iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin)); 025: var thumbImageWidth = image.contentCopyWidth; 026: var thumbImageHeight = image.contentCopyHeight; 027: var description = image.description; 028: var altText = system.htmlEncode(system.removeHtmlTags(image.altText)); 029: var oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded("alt", ""))); 030: if ( altText == "" && oldAltText !== "" ){ 031: altText = oldAltText; 032: } 033: var encodedDescription = system.htmlEncode(image.description); 034: var stripDescription = system.htmlEncode(system.removeHtmlTags(image.description)); 035: // strip

-Tags from description as

is not valid inside SPAN 036: description = description.toString().replace(/

/g,""); 037: description = description.toString().replace(/<\/p>/g,"
"); 038: //system.log("Image Width: " + parseInt(columnWidth - columnMargin) +" / Returned contentCopyWidth:" + thumbImageWidth + " / Image Result: " + iresult); 039: } 040: 041: if ( stripDescription !== "" ) { 042: var showCaption = "1"; 043: } 044: else { 045: var showCaption = "0"; 046: } 047: 048: var lightBox = article.value("lightbox"); 049: var clickURL = article.value("clickurl"); 050: 051: 052: context.write("\r\n\r\n"); 053: 054: if ( isNull(image) ) { 055: 056: context.write("\r\n\t"); 057: 058: if ( system.preview ) { 059: 060: context.write("\r\n\t\t

\r\n\t\t\t\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\r\n\t\t\t

\r\n\t\t
\r\n\t"); 065: 066: } 067: 068: context.write("\r\n"); 069: 070: } else { 071: 072: context.write("\r\n\t"); 073: 074: if ( lightBox ) { 075: 076: context.write("\r\n\r\n\t\t"); 077: 078: context.write( system.partial("article-begin.html", "popupimage") ); 079: 080: context.write("\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\t\"");\r\n\t\t\t\r\n\r\n\t\t\t"); 117: 118: if ( showCaption == "1" && description ) { 119: 120: context.write("\r\n\t\t\t\t"); 121: 122: context.write( description ); 123: 124: context.write("\r\n\t\t\t"); 125: 126: } 127: 128: context.write("\r\n\t\t\r\n\t\t\t
\r\n\t\t"); 129: 130: context.write( system.partial("article-end.html") ); 131: 132: context.write("\r\n\r\n\t"); 133: 134: } else { 135: 136: context.write("\r\n\r\n\t\t"); 137: 138: context.write( system.partial("article-begin.html") ); 139: 140: context.write("\r\n\t\t\t"); 141: 142: if ( clickURL !== "" ) { 143: 144: context.write("\r\n\t\t\t\t\r\n\t\t\t\t\t\"");\r\n\t\t\t\t\r\n\t\t\t"); 180: 181: } else { 182: 183: context.write("\r\n\t\t\t\t\"");\r\n\t\t\t"); 200: 201: } 202: 203: context.write("\r\n\r\n\t\t\t"); 204: 205: if ( showCaption == "1" && description ) { 206: 207: context.write("\r\n\t\t\t\t"); 208: 209: context.write( description ); 210: 211: context.write("\r\n\t\t\t"); 212: 213: } 214: 215: context.write("\r\n\t\t"); 216: 217: context.write( system.partial("article-end.html") ); 218: 219: context.write("\r\n\r\n\t"); 220: 221: } 222: 223: context.write("\r\n"); 224: 225: } 226: 227: // End source file: 'C:\Users\Computer-1\AppData\Local\Zeta Producer 13\packaging\widgets\singleimage\standard.html'. 228: }; 229: 230: /* Shortcuts. */ 231: article = context.article; 232: page = context.page; 233: projectFolder = context.projectFolder; 234: project = context.project; 235: system = context.system; 236: 237: 238: new SE636010922109862783().executeScript(); ----------------- bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 107. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 224. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 47. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 23. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\HighLevel\RenderingScriptProcessor.cs:Zeile 23. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 36. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 24. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 48. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 28. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 292. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render() in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 224. InterpreterException { ErrorDetailsWithStack="Ungültiger Parameter.", CompleteSourceTextWithHiddenRegions="001: function SE636010922109862783() {}\\r\\n002: \\r\\n003: \\r\\n004: SE636010922109862783.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"-30\\";\\r\\n010: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.\\r\\n011: \\tcontentImageWidth = parseInt(contentImageWidth) || 960;\\r\\n012: \\r\\n013: \\tvar gridCols = article.column.cssClass;\\r\\n014: \\tif ( gridCols ){\\r\\n015: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n016: \\t}\\r\\n017: \\telse{\\r\\n018: \\t\\tgridCols = 12;\\r\\n019: \\t}\\r\\n020: \\tvar columnMargin = 30;\\r\\n021: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n022: \\t\\r\\n023: \\tif ( !isNull(image) ) {\\r\\n024: \\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));\\r\\n025: \\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n026: \\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n027: \\t\\tvar description = image.description;\\r\\n028: \\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n029: \\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n030: \\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n031: \\t\\t\\taltText = oldAltText;\\r\\n032: \\t\\t}\\r\\n033: \\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n034: \\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n035: \\t\\t// strip

-Tags from description as

is not valid inside SPAN\\r\\n036: \\t\\tdescription = description.toString().replace(/

/g,\\"\\");\\r\\n037: \\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");\\r\\n038: \\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n039: \\t}\\r\\n040: \\t\\r\\n041: \\tif ( stripDescription !== \\"\\" ) {\\r\\n042: \\t\\tvar showCaption = \\"1\\";\\r\\n043: \\t}\\r\\n044: \\telse {\\r\\n045: \\t\\tvar showCaption = \\"0\\";\\r\\n046: \\t}\\r\\n047: \\r\\n048: \\tvar lightBox = article.value(\\"lightbox\\");\\r\\n049: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n050: \\r\\n051: \\r\\n052: context.write(\\"\\r\\n\\r\\n\\");\\r\\n053: \\r\\n054: if ( isNull(image) ) { \\r\\n055: \\r\\n056: context.write(\\"\\r\\n\\t\\");\\r\\n057: \\r\\n058: if ( system.preview ) { \\r\\n059: \\r\\n060: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n065: \\r\\n066: } \\r\\n067: \\r\\n068: context.write(\\"\\r\\n\\");\\r\\n069: \\r\\n070: } else { \\r\\n071: \\r\\n072: context.write(\\"\\r\\n\\t\\");\\r\\n073: \\r\\n074: if ( lightBox ) { \\r\\n075: \\r\\n076: context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n077: \\r\\n078: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n079: \\r\\n080: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n113:\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n117: \\r\\n118: if ( showCaption == \\"1\\" && description ) { \\r\\n119: \\r\\n120: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n121: \\r\\n122: context.write( description );\\r\\n123: \\r\\n124: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n125: \\r\\n126: } \\r\\n127: \\r\\n128: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n129: \\r\\n130: context.write( system.partial(\\"article-end.html\\") );\\r\\n131: \\r\\n132: context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n133: \\r\\n134: } else { \\r\\n135: \\r\\n136: context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n137: \\r\\n138: context.write( system.partial(\\"article-begin.html\\") );\\r\\n139: \\r\\n140: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n141: \\r\\n142: if ( clickURL !== \\"\\" ) { \\r\\n143: \\r\\n144: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");\\r\\n176:\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n196:\\r\\n\\t\\t\\t\\");\\r\\n200: \\r\\n201: } \\r\\n202: \\r\\n203: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n204: \\r\\n205: if ( showCaption == \\"1\\" && description ) { \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n208: \\r\\n209: context.write( description );\\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n212: \\r\\n213: } \\r\\n214: \\r\\n215: context.write(\\"\\r\\n\\t\\t\\");\\r\\n216: \\r\\n217: context.write( system.partial(\\"article-end.html\\") );\\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n220: \\r\\n221: } \\r\\n222: \\r\\n223: context.write(\\"\\r\\n\\");\\r\\n224: \\r\\n225: } \\r\\n226: \\r\\n227: // End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n228: };\\r\\n229: \\r\\n230: /* Shortcuts. */\\r\\n231: article = context.article;\\r\\n232: page = context.page;\\r\\n233: projectFolder = context.projectFolder;\\r\\n234: project = context.project;\\r\\n235: system = context.system;\\r\\n236: \\r\\n237: \\r\\n238: new SE636010922109862783().executeScript();\\r\\n", CompleteSourceText="001: function SE636010922109862783() {}\\r\\n002: \\r\\n003: \\r\\n004: SE636010922109862783.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n009: \\tvar contentImageWidth = \\"-30\\";\\r\\n010: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.\\r\\n011: \\tcontentImageWidth = parseInt(contentImageWidth) || 960;\\r\\n012: \\r\\n013: \\tvar gridCols = article.column.cssClass;\\r\\n014: \\tif ( gridCols ){\\r\\n015: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n016: \\t}\\r\\n017: \\telse{\\r\\n018: \\t\\tgridCols = 12;\\r\\n019: \\t}\\r\\n020: \\tvar columnMargin = 30;\\r\\n021: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n022: \\t\\r\\n023: \\tif ( !isNull(image) ) {\\r\\n024: \\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));\\r\\n025: \\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n026: \\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n027: \\t\\tvar description = image.description;\\r\\n028: \\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n029: \\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n030: \\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n031: \\t\\t\\taltText = oldAltText;\\r\\n032: \\t\\t}\\r\\n033: \\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n034: \\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n035: \\t\\t// strip

-Tags from description as

is not valid inside SPAN\\r\\n036: \\t\\tdescription = description.toString().replace(/

/g,\\"\\");\\r\\n037: \\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");\\r\\n038: \\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n039: \\t}\\r\\n040: \\t\\r\\n041: \\tif ( stripDescription !== \\"\\" ) {\\r\\n042: \\t\\tvar showCaption = \\"1\\";\\r\\n043: \\t}\\r\\n044: \\telse {\\r\\n045: \\t\\tvar showCaption = \\"0\\";\\r\\n046: \\t}\\r\\n047: \\r\\n048: \\tvar lightBox = article.value(\\"lightbox\\");\\r\\n049: \\tvar clickURL = article.value(\\"clickurl\\");\\r\\n050: \\r\\n051: \\r\\n052: context.write(\\"\\r\\n\\r\\n\\");\\r\\n053: \\r\\n054: if ( isNull(image) ) { \\r\\n055: \\r\\n056: context.write(\\"\\r\\n\\t\\");\\r\\n057: \\r\\n058: if ( system.preview ) { \\r\\n059: \\r\\n060: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n065: \\r\\n066: } \\r\\n067: \\r\\n068: context.write(\\"\\r\\n\\");\\r\\n069: \\r\\n070: } else { \\r\\n071: \\r\\n072: context.write(\\"\\r\\n\\t\\");\\r\\n073: \\r\\n074: if ( lightBox ) { \\r\\n075: \\r\\n076: context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n077: \\r\\n078: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n079: \\r\\n080: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n113:\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n117: \\r\\n118: if ( showCaption == \\"1\\" && description ) { \\r\\n119: \\r\\n120: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n121: \\r\\n122: context.write( description );\\r\\n123: \\r\\n124: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n125: \\r\\n126: } \\r\\n127: \\r\\n128: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n129: \\r\\n130: context.write( system.partial(\\"article-end.html\\") );\\r\\n131: \\r\\n132: context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n133: \\r\\n134: } else { \\r\\n135: \\r\\n136: context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n137: \\r\\n138: context.write( system.partial(\\"article-begin.html\\") );\\r\\n139: \\r\\n140: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n141: \\r\\n142: if ( clickURL !== \\"\\" ) { \\r\\n143: \\r\\n144: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");\\r\\n176:\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");\\r\\n180: \\r\\n181: } else { \\r\\n182: \\r\\n183: context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n196:\\r\\n\\t\\t\\t\\");\\r\\n200: \\r\\n201: } \\r\\n202: \\r\\n203: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n204: \\r\\n205: if ( showCaption == \\"1\\" && description ) { \\r\\n206: \\r\\n207: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n208: \\r\\n209: context.write( description );\\r\\n210: \\r\\n211: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n212: \\r\\n213: } \\r\\n214: \\r\\n215: context.write(\\"\\r\\n\\t\\t\\");\\r\\n216: \\r\\n217: context.write( system.partial(\\"article-end.html\\") );\\r\\n218: \\r\\n219: context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n220: \\r\\n221: } \\r\\n222: \\r\\n223: context.write(\\"\\r\\n\\");\\r\\n224: \\r\\n225: } \\r\\n226: \\r\\n227: // End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n228: };\\r\\n229: \\r\\n230: /* Shortcuts. */\\r\\n231: article = context.article;\\r\\n232: page = context.page;\\r\\n233: projectFolder = context.projectFolder;\\r\\n234: project = context.project;\\r\\n235: system = context.system;\\r\\n236: \\r\\n237: \\r\\n238: new SE636010922109862783().executeScript();", CompleteSourceLines=String[] { Length=238, LongLength=238, Rank=1, , IsReadOnly=False, IsFixedSize=True, IsSynchronized=False "001: function SE636010922109862783() {}", "002: ", "003: ", "004: SE636010922109862783.prototype.executeScript = function(){", "005: // Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.", "006: ", "007: ", "008: \\tvar image = project.getImage(article.value(\\"image\\"));", "009: \\tvar contentImageWidth = \\"-30\\";", "010: \\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.", "011: \\tcontentImageWidth = parseInt(contentImageWidth) || 960;", "012: ", "013: \\tvar gridCols = article.column.cssClass;", "014: \\tif ( gridCols ){", "015: \\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));", "016: \\t}", "017: \\telse{", "018: \\t\\tgridCols = 12;", "019: \\t}", "020: \\tvar columnMargin = 30;", "021: \\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;", "022: \\t", "023: \\tif ( !isNull(image) ) {", "024: \\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));", "025: \\t\\tvar thumbImageWidth = image.contentCopyWidth;", "026: \\t\\tvar thumbImageHeight = image.contentCopyHeight;", "027: \\t\\tvar description = image.description;", "028: \\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));", "029: \\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));", "030: \\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){", "031: \\t\\t\\taltText = oldAltText;", "032: \\t\\t}", "033: \\t\\tvar encodedDescription = system.htmlEncode(image.description);", "034: \\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));", "035: \\t\\t// strip

-Tags from description as

is not valid inside SPAN", "036: \\t\\tdescription = description.toString().replace(/

/g,\\"\\");", "037: \\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");", "038: \\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);", "039: \\t}", "040: \\t", "041: \\tif ( stripDescription !== \\"\\" ) {", "042: \\t\\tvar showCaption = \\"1\\";", "043: \\t}", "044: \\telse {", "045: \\t\\tvar showCaption = \\"0\\";", "046: \\t}", "047: ", "048: \\tvar lightBox = article.value(\\"lightbox\\");", "049: \\tvar clickURL = article.value(\\"clickurl\\");", "050: ", "051: ", "052: context.write(\\"\\r\\n\\r\\n\\");", "053: ", "054: if ( isNull(image) ) { ", "055: ", "056: context.write(\\"\\r\\n\\t\\");", "057: ", "058: if ( system.preview ) { ", "059: ", "060: context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");", "065: ", "066: } ", "067: ", "068: context.write(\\"\\r\\n\\");", "069: ", "070: } else { ", "071: ", "072: context.write(\\"\\r\\n\\t\\");", "073: ", "074: if ( lightBox ) { ", "075: ", "076: context.write(\\"\\r\\n\\r\\n\\t\\t\\");", "077: ", "078: context.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );", "079: ", "080: context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");",\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");", "117: ", "118: if ( showCaption == \\"1\\" && description ) { ", "119: ", "120: context.write(\\"\\r\\n\\t\\t\\t\\t\\");", "121: ", "122: context.write( description );", "123: ", "124: context.write(\\"\\r\\n\\t\\t\\t\\");", "125: ", "126: } ", "127: ", "128: context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");", "129: ", "130: context.write( system.partial(\\"article-end.html\\") );", "131: ", "132: context.write(\\"\\r\\n\\r\\n\\t\\");", "133: ", "134: } else { ", "135: ", "136: context.write(\\"\\r\\n\\r\\n\\t\\t\\");", "137: ", "138: context.write( system.partial(\\"article-begin.html\\") );", "139: ", "140: context.write(\\"\\r\\n\\t\\t\\t\\");", "141: ", "142: if ( clickURL !== \\"\\" ) { ", "143: ", "144: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");",\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");", "180: ", "181: } else { ", "182: ", "183: context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");",\\r\\n\\t\\t\\t\\");", "200: ", "201: } ", "202: ", "203: context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");", "204: ", "205: if ( showCaption == \\"1\\" && description ) { ", "206: ", "207: context.write(\\"\\r\\n\\t\\t\\t\\t\\");", "208: ", "209: context.write( description );", "210: ", "211: context.write(\\"\\r\\n\\t\\t\\t\\");", "212: ", "213: } ", "214: ", "215: context.write(\\"\\r\\n\\t\\t\\");", "216: ", "217: context.write( system.partial(\\"article-end.html\\") );", "218: ", "219: context.write(\\"\\r\\n\\r\\n\\t\\");", "220: ", "221: } ", "222: ", "223: context.write(\\"\\r\\n\\");", "224: ", "225: } ", "226: ", "227: // End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.", "228: };", "229: ", "230: /* Shortcuts. */", "231: article = context.article;", "232: page = context.page;", "233: projectFolder = context.projectFolder;", "234: project = context.project;", "235: system = context.system;", "236: ", "237: ", "238: new SE636010922109862783().executeScript();" }, LineNumber=23, ColumnNumber=2, SourceLine="\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));", Description="Ungültiger Parameter.", SourceFilePath="C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html", WasCanceled=False, Message="Ungültiger Parameter.", Data= [ ] , InnerException=SlimScriptEngineException { ExcepInfo=EXCEPINFO { }, Description="Ungültiger Parameter.", LineNumber=23, ColumnNumber=2, SourceLine="\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));", FullSourceCode="function SE636010922109862783() {}\\r\\n\\r\\n\\r\\nSE636010922109862783.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"-30\\";\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || 960;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));\\r\\n\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\tvar description = image.description;\\r\\n\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t}\\r\\n\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t// strip

-Tags from description as

is not valid inside SPAN\\r\\n\\t\\tdescription = description.toString().replace(/

/g,\\"\\");\\r\\n\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");\\r\\n\\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636010922109862783().executeScript();\\r\\n", SourceContext=0, WasCanceled=False, Message="Ungültiger Parameter.", Data= [ "COM Exception" = COMException { ErrorCode=-2147352319, Message="Ausnahme von HRESULT: 0x80020101", Data= [ ] , InnerException=null, TargetSite=RuntimeMethodInfo: ParseScriptText, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 119.", HelpLink=null, Source="ZetaProducer.SuperSlimScriptingEngine", HResult=-2147352319 } ] , InnerException=null, TargetSite=RuntimeMethodInfo: doExecute, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 172.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 180.", HelpLink=null, Source="ActiveScriptSite.ScriptError", HResult=-2146233088 }, TargetSite=RuntimeMethodInfo: ThrowHostException, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 107.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 224.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 47.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 23.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\HighLevel\\RenderingScriptProcessor.cs:Zeile 23.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 36.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 24.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 48.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 28.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 292.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render() in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 224.", HelpLink=null, Source="function SE636010922109862783() {}\\r\\n\\r\\n\\r\\nSE636010922109862783.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"-30\\";\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || 960;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));\\r\\n\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\tvar description = image.description;\\r\\n\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t}\\r\\n\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t// strip

-Tags from description as

is not valid inside SPAN\\r\\n\\t\\tdescription = description.toString().replace(/

/g,\\"\\");\\r\\n\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");\\r\\n\\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636010922109862783().executeScript();\\r\\n", HResult=-2146233088 } -->Ungültiger Parameter.ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException ----------------- Ungültiger Parameter. ----------------- bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 172. bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 71. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\Zeta Producer\13.1\Zeta Producer Main\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 180. SlimScriptEngineException { ExcepInfo=EXCEPINFO { }, Description="Ungültiger Parameter.", LineNumber=23, ColumnNumber=2, SourceLine="\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));", FullSourceCode="function SE636010922109862783() {}\\r\\n\\r\\n\\r\\nSE636010922109862783.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar image = project.getImage(article.value(\\"image\\"));\\r\\n\\tvar contentImageWidth = \\"-30\\";\\r\\n\\t// Kann auch \\"700px\\" sein, deshalb mit parseInt nur die Zahl hohlen und trimmen - falls leer, auf default 960 setzen.\\r\\n\\tcontentImageWidth = parseInt(contentImageWidth) || 960;\\r\\n\\r\\n\\tvar gridCols = article.column.cssClass;\\r\\n\\tif ( gridCols ){\\r\\n\\t\\tgridCols = parseInt((gridCols.match(/\\bc[1-9][0-2]?\\b\\s?/) || 12).toString().replace(\\"c\\", \\"\\"));\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tgridCols = 12;\\r\\n\\t}\\r\\n\\tvar columnMargin = 30;\\r\\n\\tvar columnWidth = ((contentImageWidth + columnMargin) / 12) * gridCols;\\r\\n\\t\\r\\n\\tif ( !isNull(image) ) {\\r\\n\\t\\tvar iresult = image.ensureContentCopy(article, parseInt(columnWidth - columnMargin));\\r\\n\\t\\tvar thumbImageWidth = image.contentCopyWidth;\\r\\n\\t\\tvar thumbImageHeight = image.contentCopyHeight;\\r\\n\\t\\tvar description = image.description;\\r\\n\\t\\tvar altText = system.htmlEncode(system.removeHtmlTags(image.altText));\\r\\n\\t\\tvar oldAltText = system.htmlEncode(system.removeHtmlTags(article.valueExpanded(\\"alt\\", \\"\\")));\\r\\n\\t\\tif ( altText == \\"\\" && oldAltText !== \\"\\" ){\\r\\n\\t\\t\\taltText = oldAltText;\\r\\n\\t\\t}\\r\\n\\t\\tvar encodedDescription = system.htmlEncode(image.description);\\r\\n\\t\\tvar stripDescription = system.htmlEncode(system.removeHtmlTags(image.description));\\r\\n\\t\\t// strip

-Tags from description as

is not valid inside SPAN\\r\\n\\t\\tdescription = description.toString().replace(/

/g,\\"\\");\\r\\n\\t\\tdescription = description.toString().replace(/<\\/p>/g,\\"
\\");\\r\\n\\t\\t//system.log(\\"Image Width: \\" + parseInt(columnWidth - columnMargin) +\\" / Returned contentCopyWidth:\\" + thumbImageWidth + \\" / Image Result: \\" + iresult);\\r\\n\\t}\\r\\n\\t\\r\\n\\tif ( stripDescription !== \\"\\" ) {\\r\\n\\t\\tvar showCaption = \\"1\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar showCaption = \\"0\\";\\r\\n\\t}\\r\\n\\r\\n\\tvar lightBox = article.value(\\"lightbox\\");\\r\\n\\tvar clickURL = article.value(\\"clickurl\\");\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\n if ( isNull(image) ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( system.preview ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t

\\r\\n\\t\\t\\t\\tDas gewählte Bild ist anscheinend gelöscht worden. Bearbeiten Sie diesen Artikel und wählen Sie erneut ein Bild aus.\\r\\n\\t\\t\\t

\\r\\n\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( lightBox ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\", \\"popupimage\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( clickURL !== \\"\\" ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } else { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\\\"\\");\\r\\n\\r\\ncontext.write(\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( showCaption == \\"1\\" && description ) { \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( description );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\n } \\r\\n\\r\\n// End source file: \\'C:\\Users\\Computer-1\\AppData\\Local\\Zeta Producer 13\\packaging\\widgets\\singleimage\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636010922109862783().executeScript();\\r\\n", SourceContext=0, WasCanceled=False, Message="Ungültiger Parameter.", Data= [ "COM Exception" = COMException { ErrorCode=-2147352319, Message="Ausnahme von HRESULT: 0x80020101", Data= [ ] , InnerException=null, TargetSite=RuntimeMethodInfo: ParseScriptText, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 119.", HelpLink=null, Source="ZetaProducer.SuperSlimScriptingEngine", HResult=-2147352319 } ] , InnerException=null, TargetSite=RuntimeMethodInfo: doExecute, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 172.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 71.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\Zeta Producer\\13.1\\Zeta Producer Main\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 180.", HelpLink=null, Source="ActiveScriptSite.ScriptError", HResult=-2146233088 }